package com.sekill.order.entity;

import lombok.Data;
import org.hibernate.validator.constraints.URL;

import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.NotBlank;

/**
 * 统一支付请求参数
 */
@Data
public class Unifiedorder extends BaseBean{

	private String sign_type;

	@NotBlank(message = "订单号不能为空")
	private String out_trade_no;

	@NotBlank(message = "订单金额不能为空")
	private String total_fee;

	@NotBlank(message = "回调notify_url不能为空")
	@URL(message = "回调地址不正确")
	private String notify_url;

	private String note;

//	@NotBlank(message = "支付方式不能为空")
	@DecimalMax(value = "3",message = "支付方式:1->支付宝；2->微信")
	private Integer payType;

	/**
	 * 订单来源：0->PC订单；1->app订单
	 */
//	@NotBlank(message = "订单来源不能为空")
	@DecimalMax(value = "3",message = "订单来源：0->PC订单；1->app订单")
	private Integer sourceType;



}
